function Const() {
    let data =  {
        ERROR: {
            ALREADY_EXISTS: 6,
            INVALID_USER_NAME: 5,
            ERROR_PASSWORD: 3,
            ERROR_NETWORK: -10000,
            ERROR_INVALID: -1,
            ERROR_PARAM_NOT_SET: 1,
            ERROR_TOKEN_INVALID: 2,
            ERROR_LOGIN_FAIL: 3,
            ERROR_WRONG_PARAM: 4,
            ERROR_NOT_EXIST: 5,
            ERROR_EXIST: 6,
            ERROR_ORG_NOT_EXIST: 7,
            ERROR_ORG_MEMBER_NOT_EXISTS: 8,
            ERROR_REGISTER: 9,
            ERROR_USER_NOT_EXISTS: 10,
            ERROR_PHONE_HAS_BEEN_TAKEN: 11,
            ERROR_BIND_USER_BIND_EXISTS: 12,
            ERROR_WRONG_TYPE: 13,
            ERROR_SAVE_ERROR: 14,
            ERROR_ACTION_NOT_ALLOWED: 15,
            ERROR_WRONG_VERIFICATION_CODE: 16,
            ERROR_SEND_PHONE_VCODE_TOO_OFTEN: 17
        },
        SYSTEM: {
            LOG_LEVEL_ERROR: 1,
            LOG_LEVEL_WARN: 2,
            LOG_LEVEL_INFO: 3,
            LOG_LEVEL_TRACE: 4,
            LOG_LEVEL_DEBUG: 5
        },

		NET: {
			// END_POINT_ADMIN: 'http://localhost:9888/ds-admin/1',
			END_POINT_ADMIN: 'https://ly.api.wwhis.com/ds-admin/1',

			UPLOAD_FILE_URL: "https://ly.api.wwhis.com/static/file/upload",
			FILE_STATIC_URL: "https://leyimedical.oss-cn-hangzhou.aliyuncs.com/"
		},

		TOOL: {
			API_CREATE_EXPORT_TASK: 'tool/export-task/create',
			API_RUN_EXPORT_TASK: 'tool/export-task/run',
		},

		DATA: {
			KEY_PREFIX: 'pts.admin.data.',
			KEY_TOKEN: 'token',
			KEY_USER: 'user',
			KEY_USER_TYPE: 'user-type',
		},

		CONFIG_LOCATION: {
			1: '首页',
			2: '医疗器械'
		},

		TRACK_TYPE: {
			1: '经销商',
			2: '医生'
		},

		CONFIG_TYPE: {
			1: '医院',
			2: '商品'
		},

        ORDER_TYPE: {
            MALL: 1,
            VIP: 2
        },

        ORDER_STATUS: {
            5: '待支付',
            10: '待发货',
            20: '待收货',
            30: '待评价',
            40: '已评价'
        }
	}


	if (window.location.href.indexOf("localhost") < 0) {
		data.NET.END_POINT_ADMIN = "https://ly.api.wwhis.com/ds-admin/1"
	}

	return data
}

export default new Const()
